/**==================== 文章公共模块样式开始 ====================*/
/* 公共样式 */
article h3{
    width: calc(100% + 4rem + 5px);
    margin-left: calc(-2rem - 5px);
    padding: 0.4rem 2rem;
    border-left: 5px solid #24a0f0;
    background-color: #fafafa;
}
article h4{
    width: calc(100% + 4rem + 3px);
    margin-left: calc(-2rem - 3px);
    padding: 0.3rem 2rem;
    border-left: 3px solid #24a0f0;
    background-color: #fafafa;
}
article h5{
    width: calc(100% + 4rem);
    margin-left: calc(-2rem);
    padding: 0.2rem 2rem;
    background-color: #fafafa;
}

.single .ads{
    margin-top: 1rem;
}

/* 历史上的今天 */
.today-in-history{
    cursor: default;
    width: 100%;
}
.today-in-history fieldset{
    border: 1px dashed #999;
}
.today-in-history legend{
    width: auto;
    min-width: 160px;
    height: 36px;
    line-height: 36px;
    margin-left: 30px;
}
.today-in-history .date{
    float: left;
    width: 40px;
    height: 36px;
    line-height: 16px;
    margin-right: 5px;
    padding: 2px;
    border-radius: 9px;
    font-size: 0.8rem;
    text-align: center;
    overflow: hidden;
}
.today-in-history .date .month{
    display: block;
    color: #fff;
    background: #c10e0e;
}
.today-in-history .date .day{
    display: block;
    font-weight: bold;
    color: #000;
    background: #ddd;
}
.today-in-history fieldset legend h3{
    margin: 0 auto;
    font-size: 1.2rem;
    font-weight: normal;
    white-space: nowrap;
}
.today-in-history fieldset ul{
    margin: 15px 0;
}
.today-in-history fieldset ul span{
    margin-left: 7px;
}
/* 文章末尾文字广告 */
.ads-post-footer-text{
    cursor: default;
    line-height: 1.5rem;
    overflow: hidden;
}
.ads-post-footer-text b{
    font-weight: normal;
    color: #41C282
}
.ads-post-footer-text strong{
    color: #FD6A5E
}
.ads-post-footer-text a{
    color: inherit;
}
.ads-post-footer-text a:hover{
    color: #24a0f0;
}
/**====================文章页底部翻页导航样式====================*/
.post-nav-prevnext{
    cursor: default;
    width: 100%;
    height: 42px;
    font-size: 1rem;
    color: #bbb;
    overflow: hidden;
}
.post-nav-prevnext a:hover{
    color: #24a0f0;
}
.post-nav-prevnext span{
    float: left;
    position: relative;
    width: 50%;
}
.post-nav-prevnext.no-img span .text{
    margin: 0!important;
}
.post-nav-prevnext span .text{
    margin: 0 0 0 70px;
    height: 40px;
    line-height: 20px;
}
.post-nav-prevnext span.next .text{
    margin: 0 70px 0 0;
}
.post-nav-prevnext span .thumbnail{
    float: left;
    width: 60px;
    height: 40px;
    margin: 0;
    border-radius: 5px;
    border: 1px solid #eee;
    overflow: hidden;
}
.post-nav-prevnext span.next .thumbnail{
    float: right;
}
.post-nav-prevnext span img{
    transition-duration: 0.5s;
    width: 100%;
    height: 100%;
}
.post-nav-prevnext span img:hover{
    transform: scale(1.5);
}
.post-nav-prevnext span.next{
    float: right;
    text-align: right;
}
.post-nav-prevnext span.next::before{
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    display :block;
    width: 1px;
    background: #eee;
}
.post-nav-prevnext i{
    display: block;
    height: 20px;
    line-height: 20px;
}
.post-nav-prevnext a{
    display: inline-block;
    width: 66%;
    height: 20px;
    line-height: 20px;
    margin: 0 10px 0 0;
    color: #999;
    white-space: nowrap;
    word-wrap: break-word;
    word-break: break-all;
    text-overflow: ellipsis;
    overflow: hidden;
}
.post-nav-prevnext span.next a{
    margin: 0 0 0 10px;
}
@media(max-width: 768px){
    .post-nav-prevnext{
        display: none;
    }
}

/**====================文章页底部相关文章样式====================*/
.posts-related{
    cursor: default;
}
.posts-related .title{
    height: 2rem;
    line-height: 2rem;
    overflow: hidden;
}
.posts-related .title h3{
    margin: 0 auto;
    font-size: 1.2rem;
    font-weight: normal;
}
.posts-related ul{
    list-style: none;
    margin: 0 auto;
    color: #555;
}
.posts-related li{
    display: inline-block;
    width: 48%;
    height: 1.2rem;
    line-height: 1.2rem;
    margin: 5px 2% 0 0;
    overflow: hidden;
}
.posts-related li .caption i::before{
    float: left;
}
.posts-related li .caption a{
    display: inline-block;
    color: inherit;
    height: 100%;
    width: 90%;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-wrap: break-word;
    word-break: break-all;
    overflow: hidden;
}
.posts-related li .caption a:hover{
    transition-duration: 0.3s;
    color: #24a0f0;
}

@media(max-width: 768px){
    .posts-related li{
        width: 98%;
    }
}
/** 开启图文模式 */
.posts-related.has-img ul{
    display: flex;
    flex-wrap: wrap;
}
.posts-related.has-img li{
    display: inline-block;
    position: relative;
    flex-basis: calc(25% - 12px);
    height: auto;
    margin: 15px 15px 0 0;
    border: 1px solid #eee;
    padding: 0;
    border-radius: 9px;
    overflow: hidden;
}
.posts-related.has-img li:nth-child(4n){
    margin-right: 0;
}
.posts-related.has-img li .pic-wrapper{
    display: block;
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 66%;
}
.posts-related.has-img li .pic-wrapper img{
    object-fit: cover;
    transition-duration: .5s;
    position: absolute;
    width: 100%;
    height: 100%;
}
.posts-related.has-img li:hover img{
    transform: scale(1.2);
}
.posts-related.has-img li .caption{
    display: none;
    position: absolute;
    top: 0;
    width: 100%;
    line-height: 1rem;
    padding: 3px 5px;
    background: #3338;
    overflow: hidden;
}
.posts-related.has-img li .caption i{
    display: none;
}
.posts-related.has-img li .caption a{
    font-size: 0.8rem;
    color: #fff;
}
.posts-related.has-img li:hover .caption{
    display: block;
}
.posts-related.has-img li .meta{
    display: none;
    position: absolute;
    transform: translate(-50%, -50%);
    top: calc(50% + 1rem);
    left: 50%;
    width: auto;
    min-width: 80px;
    text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.posts-related.has-img li .meta>div{
    margin: 5px auto;
    padding: 3px 9px;
    border-radius: 3px;
    font-size: 0.8rem;
    color: #fff;
    background-color: #24a0f0;
    opacity: 0.8;
}
.posts-related.has-img li:hover .meta{
    display: block;
}
@media(max-width: 768px){
    .posts-related.has-img li{
        flex-basis: calc(50% - 8px);
        margin: 15px 15px 0 0;
    }
    .posts-related.has-img li:nth-child(2n){
        margin-right: 0;
    }
}
@media(max-width: 480px){
    .posts-related.has-img li{
        flex-basis: calc(50% - 5px);
        margin: 10px 10px 0 0;
    }
}

/**==================== 文章公共模块样式结束 ====================*/

/**==================== 首行缩进 ====================**/
.post-indent .content .post-content{
    text-indent: 2em;
}
/* 默认文章 */
.single .content{
    margin-top: 1.2rem;
    padding: 1.5rem 2rem;
    background-color: #fff;
}

/* 头部样式 */
.single .post-header{
    cursor: default;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    text-align: center;
}
.single .post-header a{
    color: inherit;
}
.single .post-header a:hover{
    color: #24a0f0;
}
.single .post-header .title{
    margin: 0 auto;
    font-size: 1.5rem;
    font-weight: normal;
    color: inherit;
}
.single .post-header .meta{
    margin: auto;
    margin-top: 1rem;
}
.single .post-header .meta span{
    margin: 0 5px;
    font-size: 0.8rem;
    color: #999;
}
.single .post-content{
    margin: 1rem 0 0;
    font-size: 1rem;
    line-height: 20px;
    word-wrap: break-word;
}
.post-content .wp-caption{
    max-width: 100%;
    padding: 10px 10px 1px;
    background: #f6f6f6;
}
.single .page-content a{
    color: #24a0f0;
    text-decoration: none;
}
@media (max-width: 1366px) {
    .single .content{
        margin-top: 1rem;
    }
}
@media (max-width: 1024px) {
    .single .content{
        margin-top: 0.8rem;
    }
    .single .post-header{
        padding: 0 0 10px;
    }
    .single .post-header .post-title{
        margin: 0 0 5px;
        font-size: 20px;
    }
}
@media (max-width: 768px) {
    .single .content{
        padding: 1rem;
    }
    .single .post-header{
        padding: 0 0 5px;
    }
    .single .post-header .post-title{
        margin: 0 0 5px;
        font-size: 20px;
    }
    .single .post-header .meta .category{
        display: none;
    }
    .single .post-header .meta .time{
        display: none;
    }
}
@media (max-width: 480px) {
    .single .post-header{
        padding: 0 0 5px;
    }
    .single .post-header .post-title{
        margin: 0 0 5px;
        font-size: 16px;
    }
    .single .post-header .post-meta{
        font-size: 10px;
    }
    .single .post-header .post-meta span{
        margin: 0 3px;
        font-size: 10px;
    }
    .single .post-header .post-meta .cat{
        display: none;
    }
    .single .post-header .post-meta .time{
        display: none;
    }
    .single .post-header .post-meta a{
        font-size: 10px;
    }
    .single .post-header .post-meta i{
        font-size: 10px;
    }
}


/**====================视频文章页面样式====================*/
.single .video-container{
    text-indent: 0;
}
.single .video-container .post-header{
    position: relative;
    height: 70px;
}
.single .video-container .post-header .metas{
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 0;
    right: 0;
    width: 240px;
    height: 100%;
    color: #777;
}
.single .video-container .post-header .meta{
    width: 100%;
    height: 100%;
    margin: auto;
    padding: 5px 0;
    overflow: hidden;
}
.single .video-container .post-header .meta i{
    display: block;
    font-size: 2rem;
}
.single .video-container .post-header .meta b{
    display: block;
    margin-top: 5px;
    font-size: 0.8rem;
}
.single .video-container .post-header .left{
    height: 100%;
    margin-right: 240px;
    text-align: left;
}
.single .video-container .post-header .title{
    height: 40px;
    line-height: 40px;
    font-size: 1.5rem;
    text-overflow: ellipsis;
    word-break: break-all;
    white-space: nowrap;
    overflow: hidden;
}
.single .video-container .post-header .infos{
    height: 20px;
    line-height: 20px;
    font-size: 0.8rem;
    color: #777;
}
.single .video-container .post-header .infos span{
    display: inline-block;
    margin-right: 10px;
    height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: break-all;
    overflow: hidden;
}
.single .video-container .post-header .infos em{
    font-weight: bold;
    color: #555;
}
.single .video-container .post-header .infos .language{
    padding: 1px 5px;
    color: #fff;
    background: #24a0f0;
}
.single .video-container .post-header .infos .more:hover em{
    cursor: pointer;
    color: #24a0f0;
}
.single .video-container .post-header .infos .details-wrapper{
    display: none;
    z-index: 999;
    position: absolute;
    width: 100%;
    height: 150px;
    padding: 15px;
    background-color: #fff;
}
.single .video-container .post-header .details-wrapper .details{
    margin-right: 120px;
}
.single .video-container .post-header .details-wrapper p{
    margin: 5px auto;
    font-size: 0.8rem;
    text-overflow: ellipsis;
    word-wrap: break-word;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.single .video-container .post-header .details-wrapper .poster{
    position: absolute;
    top: 15px;
    right: 15px;
    width: 90px;
    height: 120px;
    overflow: hidden;
}
.single .video-container .post-header .details-wrapper .poster img{
    object-fit: cover;
    transition-duration: 0.5s;
    height: 120px;
}
.single .video-container .post-header .details-wrapper .poster img:hover{
    object-fit: cover;
    transform: scale(1.2);
    height: 120px;
}
@media (max-width: 768px) {
    .single .video-container .post-header .infos span{
        max-width: 240px;
    }
    .single .video-container .post-header .metas {
        display: none;
    }
    .single .video-container .post-header .left {
        width: 100%;
        margin: 0;
    }
}


/**==================== 产品文章页面样式 ====================*/
.single .product-container{
    position: relative;
}
/* 头部详情 */
.single .product-info-wrapper{
    position: relative;
    width: 100%;
    padding: 1.5rem 1.5rem 1.5rem 420px;
    background: #fff;
    overflow: hidden;
}
.single .product-info-wrapper a{
    text-decoration: none;
    color: inherit;
}
.single .product-info-wrapper .gallery{
    float: left;
    display: block;
    position: relative;
    width: 380px;
    margin: 0 0 0 -400px;
    border: 0;
    padding: 0;
}
.single .product-info-wrapper .info{
    margin: 0 auto;
}
.single .product-info-wrapper .info h1{
    height: 30px;
    line-height: 30px;
    margin: 0 auto;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    overflow: hidden;
    word-break: break-all;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.single .product-info-wrapper .metas{
    margin: 10px auto;
    padding: 5px 20px;
    border-radius: 5px;
    background: #f5f5f5;
}
.single .product-info-wrapper .meta{
    margin: 10px auto;
    font-size: 1rem;
}
.single .product-info-wrapper .meta label{
    width: 4rem;
    margin-right: 10px;
    text-align: justify;
    text-align-last: justify;
    color: #999;
}
.single .product-info-wrapper .meta span{
    color: #555;
}
.single .product-info-wrapper .meta.price span{
    font-size: 1.2rem;
    font-weight: bold;
    color: #24a0f0;
}
.single .product-info-wrapper .meta.sale-price span{
    color: #ff0024;
}
.single .product-info-wrapper .meta.sale-price strong{
    font-size: 1.8rem;
    font-weight: bolder;
}
.single .product-info-wrapper .meta .sale-info{
    position: relative;
    bottom: 3px;
    margin-left: 15px;
    vertical-align: bottom;
    font-size: 1rem;
}
.single .product-info-wrapper .sale-info b{
    font-weight: bold;
}
.single .product-info-wrapper .sale-info big{
    margin: 0 5px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #ff0024;
}
.single .product-info-wrapper .sale-info em{
    margin: 0 3px;
    padding: 1px 3px;
    border-radius: 3px;
    vertical-align: bottom;
    font-size: 1rem;
    font-weight: normal;
    color: #fff;
    background: #ff0024;
}
.single .product-info-wrapper .desc{
    line-height: 1.2rem;
    margin: 1rem auto;
    font-size: 1rem;
    color: #999;
    text-align: justify;
    text-overflow: ellipsis;
    word-wrap: break-word;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}
.single .product-info-wrapper .tags{
    line-height: 1.2rem;
    margin: 1rem auto;
    font-size: 1rem;
    color: #999;
}
.single .product-info-wrapper .tags a{
    margin-right: 7px;
    padding: 2px 7px;
    border-radius: 3px;
    font-size: 0.9rem;
    color: #fff;
    background: #9ccc65;
}
.single .product-info-wrapper .tags a:hover{
    background: #689f38;
}
.single .product-info-wrapper .buyer{
    /* display: none; */
    position: relative;
    margin: 1rem auto;
}
.single .product-info-wrapper .buyer label{
    width: 4rem;
    margin-right: 10px;
    text-align: justify;
    text-align-last: justify;
    color: #333;
}
.single .product-info-wrapper .buyer .amount{
    outline: none;
    display: inline-block;
    width: 60px;
    height: 30px;
    line-height: 30px;
    padding: 0 0 0 10px;
    border: 1px solid #999;
}
.single .product-info-wrapper .buyer .unit{
    margin: 0 5px;
}
.single .product-info-wrapper .sku{
    margin-left: 10px;
    font-size: 1rem;
    color: 777;
}
.single .product-info-wrapper .sku strong{
    margin: 0 5px;
    font-size: 1.1rem;
    font-weight: bold;
}
.single .product-info-wrapper .btns{
    position: relative;
    margin: 1rem auto;
}
.single .product-info-wrapper .btns .btn{
    position: relative;
    height: 2rem;
    line-height: 2rem;
    margin: 0 auto;
    padding: 0 1rem;
    font-size: 1rem;
    color: #fff;
    background: #24a0f0;
}
/* 介绍评价 */
.single .product-content-wrapper{
    position: relative;
    width: 100%;
    overflow: hidden;
}
.single .product-container .sidebar{
    float: left;
    position: absolute;
    top: 0;
    width: 300px;
    height: 100%;
    margin: 0 auto;
    overflow-y: scroll;
    scrollbar-width: none;
}
.single .product-container .sidebar::-webkit-scrollbar{
    display: none;
}
.single .product-content-wrapper>.content-wrapper >.content{
    margin-left: 320px;
    margin-right: 0;
    padding: 0;
    overflow: hidden;
}
.single .product-content-wrapper .tabs{
    cursor: default;
    list-style: none;
    height: 2.5rem;
    line-height: 2.5rem;
    margin: 0 auto;
    padding: 0;
    border-bottom: 1px solid #ccc;
}
.single .product-content-wrapper .mobile{
    float: right;
    position: relative;
    height: 100%;
    padding: 0 1rem;
    font-size: 0.8rem;
}
.single .product-content-wrapper .mobile i{
    margin: 0 5px;
}
.single .product-content-wrapper .mobile:hover .product-qrcode{
    display: block;
}
.single .product-content-wrapper .mobile .product-qrcode{
    z-index: 999;
    display: none;
    position: absolute;
    top: 2.5rem;
    right: 1rem;
    width: 140px;
    height: 140px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 5px;
    background: #fff;
}
.single .product-content-wrapper .mobile .product-qrcode canvas{
    width: 100%;
    height: 100%;
}
.single .product-content-wrapper .tab{
    float: left;
    display: block;
    width: 100px;
    height: 100%;
    line-height: 2.5rem;
    margin: 0 auto;
    text-align: center;
    color: #555;
}
.single .product-content-wrapper .tab.active{
    color: #fff;
    background: #999;
}
.single .product-content-wrapper .items{
    min-height: 500px;
    padding: 1.2rem 2rem;
    padding-top: 0;
}
.single .product-content-wrapper .content .item{
    display: none;
}
.single .product-content-wrapper .item.active{
    display: block;
}
@media (max-width: 1024px) {
    .single .product-info-wrapper {
        padding: 1.5rem 1.5rem 1.5rem 340px;
    }
    .single .product-info-wrapper .gallery{
        width: 300px;
        margin: 0 0 0 -320px;
    }
    .single .product-info-wrapper .product-gallery-container {
        width: 300px;
        height: 260px;
    }
    .single .product-container .sidebar{
        width: 260px;
    }
    .single .product-content-wrapper>.content-wrapper >.content{
        margin-left: 280px;
    }
}
@media (max-width: 768px) {
    .single .product-info-wrapper {
        padding: 1rem;
    }
    .single .product-info-wrapper .gallery{
        float: none;
        width: 100%;
        margin: 0;
    }
    .single .product-info-wrapper .product-gallery-container {
        width: 100%;
        height: 360px;
    }
    .single .product-info-wrapper .info {
        margin-top: 1rem;
    }
    .single .product-container .sidebar{
        position: relative;
        width: 100%;
    }
    .single .product-content-wrapper>.content-wrapper >.content{
        margin-left: 0;
    }
}
@media (max-width: 480px) {
    .single .product-info-wrapper .product-gallery-container {
        width: 100%;
        height: 280px;
    }
}
